<template>
  <div class="container">
    <div class="center-title">
      <img src="../../assets/img/nlzx-title-bg.png" alt="">
      <span>服务事项</span>
      <img src="../../assets/img/nlzx-title-bg.png" alt="">
    </div>
    <div class="center-sub-title">Service</div>
    <div class="work-group">
      <div class="content-box work-content">
        <div class="work-item" v-for="(item, index) in list" :key="index">
          <div class="work-item-img">
            <img :src="item.icon" alt="">
          </div>
          <div class="work-item-content">
            <div class="work-item-content-title">{{ item.name }}</div>
            <div class="work-item-content-sub-item" v-for="(subItem, subIndex) in item.children" :key="subIndex">
              {{subItem.name}}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";

export default defineComponent({
  name: "Services",
  setup() {
    const list = [
      {
        name: '横影码',
        icon: require('@/assets/img/playgroup/playgroup-services-1.png'),
        children: [
          {
            name: '横影码申领'
          },
          {
            name: '一码通行'
          },
          {
            name: '码上名片'
          }
        ]
      },
      {
        name: '证照',
        icon: require('@/assets/img/playgroup/playgroup-services-2.png'),
        children: [
          {
            name: '演员证申领'
          },
          {
            name: '剧组人员办证'
          },
          {
            name: '剧组车辆办证'
          },
          {
            name: '影视培训证书'
          }
        ]
      },
      {
        name: '参演',
        icon: require('@/assets/img/playgroup/playgroup-services-3.png'),
        children: [
          {
            name: '群演报名'
          },
          {
            name: '演员入队申请'
          }
        ]
      },
      {
        name: '人才服务',
        icon: require('@/assets/img/playgroup/playgroup-services-4.png'),
        children: [
          {
            name: '人才大礼包'
          },
          {
            name: '人才培育奖励'
          },
          {
            name: '人才认定'
          },
          {
            name: '人才政策奖补'
          }
        ]
      },
      {
        name: '就业创业',
        icon: require('@/assets/img/playgroup/playgroup-services-5.png'),
        children: [
          {
            name: '个体就业创业'
          }
        ]
      },
      {
        name: '民生保障',
        icon: require('@/assets/img/playgroup/playgroup-services-6.png'),
        children: [
          {
            name: '个人社保信息查询'
          }
        ]
      },
    ]
    return {
      list
    };
  },
});
</script>

<style scoped lang="less">
.container {
  /*background: linear-gradient(180deg, #F6F6F6 0%, #F1F1F1 100%);*/
  background: #fff;

  .work-group {
    padding: 40px 0;

    .work-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .work-item {
        display: flex;
        width: calc(33.33% - 12px);
        height: 180px;
        //margin-right: 10px;
        margin-bottom: 20px;
        padding: 30px;
        background: url("../../assets/img/playgroup/playgroup-services-bg.png") no-repeat center / 100%;
        border: 1px solid #DADADA;

        //&:not(:nth-child(3n)) {
        //  margin-right: 10px;
        //}
        .work-item-img {
          width: 120px;
          text-align: center;
        }

        .work-item-content {
          .work-item-content-title {
            margin-bottom: 4px;
            font-size: 20px;
            font-weight: 700;
            color: #313233;
            line-height: 28px;
            letter-spacing: 1px;
          }

          .work-item-content-sub-item {
            font-size: 14px;
            color: #757575;
            line-height: 24px;
          }
        }
      }
    }
  }
}

</style>
